Other Structures

The following structures are available globally.

  • Directed graph with several properties:

    • Each edge has a capacity for flow
    • A source node, which only emanates flow outward
    • A sink node, which only receives flow
    See more

    Declaration

    Swift

    public struct FlowNetwork<Node: Hashable, Weight: Numeric & Comparable>:
        WeightedGraphProtocol,
        DirectedGraphProtocol